package cn.mulanbay.message.persistent.service;

import cn.mulanbay.persistent.entity.SystemMonitorUser;
import cn.mulanbay.persistent.enums.MonitorBussType;
import cn.mulanbay.persistent.mapper.SystemMonitorUserMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SystemMonitorUserService extends ServiceImpl<SystemMonitorUserMapper, SystemMonitorUser>  {

    @Autowired
    SystemMonitorUserMapper systemMonitorUserMapper;

    public List<SystemMonitorUser> getListByBussType(MonitorBussType bussType){
        return systemMonitorUserMapper.getListByBussType(bussType);
    }

    public List<SystemMonitorUser> getListByUserId(Long userId){
        return systemMonitorUserMapper.getListByUserId(userId);
    }
}
